﻿function btnsave()
{
$('Sagree').style.display="none";
$('StxtCommInput').style.display="none";
var txtCommInput=$('txtCommInput').value;
if(!$ValidButton$()||!$('agree').checked||txtCommInput.length>3799){if(!$('agree').checked){$('Sagree').style.display="";}if(txtCommInput.length>3799){$('StxtCommInput').style.display="";}return;}
  showProgressBar(true);
  $get("btnCommInput").disabled=true;
  if($('StartDate').value==StartDate&&$('StartTime').value==StartTime&&$('Price').value==Price&&state!='3')
  {
   WebServices.User.Teach.SetSesState5(sid,memberno,txtCommInput,onners);
  }
  else
  {
    WebServices.User.Teach.SetSesState3(sid,memberno,$('StartDate').value, $('StartTime').value,$('Price').value,txtCommInput,Timezone,onners);
  }
}
function onners(re)
{ 

  if(re)
    {
       showProgressBar(false);
       top.location='/session/session.htm?sid='+sid;
        
    }
}
